package com.ang.function.supplier;

import java.util.Random;
import java.util.function.Supplier;

/**
 * 无入参，有返回
 */
public class SupplierTest {
    public static void main(String[] args) {

        Integer integer = supplier1.get();
        System.out.println(integer);
    }

    static Supplier<Integer> supplier1 = ()->{
        return new Random().nextInt(100);
    };
}
